<style>
</style>
<template>
    <view class="page m-pf">
        <web-view :src="data" :webview-styles="webviewStyles"></web-view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                data: '',
                webviewStyles: {
                    progress: {
                        color: '#d71311'
                    }
                }
            }
        },
        onLoad(option) {
			if(option.url){
				this.data = option.url
			}else{
				this.data = 'https://home.gdhenglang.com/article/view/id/'+option.id;
			}
        } 

    }
</script>
